#if !defined(AFX_LPSHEETDLG_H__68E56380_3533_4A39_BEE0_EBD8D4B72F76__INCLUDED_)
#define AFX_LPSHEETDLG_H__68E56380_3533_4A39_BEE0_EBD8D4B72F76__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LPSheetDlg.h : header file
#include "Resource.h"
//

/////////////////////////////////////////////////////////////////////////////
// CLPSheetDlg dialog

class CLPSheetDlg : public CDialog
{
// Construction
public:
	CLPSheetDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CLPSheetDlg)
	enum { IDD = IDD_DIALOG_LPSHEET };
	CComboBox	m_ctlLPNumber;
	CString	m_strLPTitle;
	double	m_dblBusinessProfit;
	double	m_dblExchangeLost;
	double	m_dblFinanceFee;
	double	m_dblGoodsCosts;
	double	m_dblIncomeTax;
	double	m_dblInvestIncome;
	double	m_dblLastYearLeft;
	double	m_dblManageFee;
	double	m_dblOtherTaking;
	double	m_dblOutBusinessOutgo;
	double	m_dblOutbusinessIncome;
	double	m_dblProfitClear;
	double	m_dblProfitTotal;
	double	m_dblRebate;
	double	m_dblSaleByProxy;
	double	m_dblSaleFee;
	double	m_dblSaleProfit;
	double	m_dblSaleTaking;
	double	m_dblSaleTakingClear;
	double	m_dblSaleTaxAndAnnex;
	double	m_dblSubsidyIncome;
	CString	m_strLPNumber;
	COleDateTime	m_tLPDate;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLPSheetDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CLPSheetDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnAdd();
	afx_msg void OnClose();
	afx_msg void OnDel();
	afx_msg void OnEdit();
	afx_msg void OnPrint();
	afx_msg void OnBlank();
	afx_msg void OnSelchangeLpnumber();
	afx_msg void OnChangeExchangelost();
	afx_msg void OnChangeFinancefee();
	afx_msg void OnChangeGoodscosts();
	afx_msg void OnChangeIncometax();
	afx_msg void OnChangeInvestincome();
	afx_msg void OnChangeLastyearleft();
	afx_msg void OnChangeManagefee();
	afx_msg void OnChangeOthertaking();
	afx_msg void OnChangeOutbesinessoutgo();
	afx_msg void OnChangeOutbusinessincome();
	afx_msg void OnChangeRebate();
	afx_msg void OnChangeSalebyproxy();
	afx_msg void OnChangeSalefee();
	afx_msg void OnChangeSaletaxandannex();
	afx_msg void OnChangeSubsidyincome();
	afx_msg void OnChangeSaletaking();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

public:
	_ConnectionPtr m_pConnection;
	_RecordsetPtr m_pRecordset;
//	_CommandPtr m_pCommand;
	void Openset();
	void Closeset();
	void GetEditValue();
	void SetEditValue();
	void SetComboValue();
	void AccountSheet();

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_LPSHEETDLG_H__68E56380_3533_4A39_BEE0_EBD8D4B72F76__INCLUDED_)
